package connector;

import java.io.IOException;
import java.util.concurrent.Executor;

/**
 * @ClassName : ProtocolHandler
 * @Description : ProtocolHandler用来处理请求
 * @Author : zhangxiaohai
 * @Date: 2021-06-24 08:20
 */
public interface ProtocolHandler {
    void setExecutor(Executor executor);

    Connector getConnector();

    void setConnector(Connector connector);

    Integer getPort();

    void init() throws IOException;

    void start() throws IOException;

    Executor getExecutor();
}
